#ifndef AGGREGATE_H
#define AGGREGATE_H

#include "Iterator.h"

template<class T>
class Aggregate
{
public:

	virtual ~Aggregate() {}

	virtual Iterator<T>* crateIterator() = 0;

	virtual int getSize() = 0;

	virtual T getItem(int nIndex) = 0;

};

#endif // AGGREGATE_H
